$(document).ready(function(){
	dates1 = $( "#from1, #to1" ).datepicker({
		changeMonth: true,
		numberOfMonths: 1,
		onSelect: function( selectedDate ) {
			var option = this.id == "from1" ? "minDate" : "maxDate",
				instance = $( this ).data( "datepicker" ),
				date = $.datepicker.parseDate(
					instance.settings.dateFormat ||
					$.datepicker._defaults.dateFormat,
					selectedDate, instance.settings );
			dates1.not( this ).datepicker( "option", option, date );
		}
	});
	$( "#from1, #to1" ).datepicker($.datepicker.regional[ 'zh-CN'] );
	
	$("#searchSummaryBtn").click(function(){
		$("#summarySearchResult").load(getRootPath()+ "/MainMenu/fund/searchSummary.htm",$("#summarySearchForm").serializeArray(),function(data){
			if(data.error){
				alert("搜索失败");
			}
		});
	});

});

